package biz.impl;/**
 * Created by aiqinag on 2017-06-23.
 */

import biz.Smbms_ProviderBiz;
import dao.Smbms_ProviderDao;
import entity.Smbms_Provider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 供应商
 *
 * @author tom_plus
 * @date 2017-06-23-17:11
 */
@Service
public class Smbms_ProviderBizImpl implements Smbms_ProviderBiz {


    @Autowired
    public Smbms_ProviderDao providerDao;

    public List<Smbms_Provider> selectPr() {
        return this.providerDao.selectPr();
    }

    public Smbms_Provider selectShow(String id) {
        return this.providerDao.selectShow(id);
    }

    public List<Smbms_Provider> selectDim(String name, int No, int Po) {
        return this.providerDao.selectDim(name,No,Po);
    }

    public void delete(String id) {
        this.providerDao.delete(id);
    }

    public int add(Smbms_Provider provider) {
        return this.providerDao.add(provider);
    }

    public void update(Smbms_Provider provider) {
        this.update(provider);
    }

    public int selectNum() {
        return this.selectNum();
    }

    public int selectDimNum(String proName) {
        return this.selectDimNum(proName);
    }
}
